package com.gzyj.jtt808.v2011.additionalinfo;

import io.netty.buffer.ByteBuf;
import lombok.Data;

/**
 * @author lhj
 */
@Data
public abstract class JTT808_AddtionalInfo {
    private int ID;
    private int length;

    public JTT808_AddtionalInfo() {

    }

    public JTT808_AddtionalInfo(int code) {
        this.ID = code;
    }


    public abstract void encode(ByteBuf buf);

    public abstract JTT808_AddtionalInfo decode(ByteBuf buf);

}
